package net.mikoo.seals.biz.mapper;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.model.Seal;
import net.mikoo.seals.model.SealQuery;

@MapperScan
public interface SealMapper {

	Integer insert(Seal seal);

	Integer update(Seal seal);

	Seal selectInfoById(Long sealId);

	List<Seal> selectPageByQuery(SealQuery query);

	Integer countPageByQuery(SealQuery query);

	Seal selectInfoByQuery(SealQuery query);

	Integer delete(Seal seal);

	/**
	 * 变更印章状态
	 * 
	 * @param seal
	 * @return
	 */
	Integer updateStatus(Seal seal);

	Integer countTotal(Long companyId);

	List<Seal> selectListByQuery(SealQuery query);
	
	Integer updateInterim(Seal seal);
	

}
